-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[circle2circle] Dredd test for fuse Add/Mul to FC and fold Mul #13444
Conversation
This will add circle2circle dredd test for fuse Add/Mul to FC and fold Mul. ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment, PTAL
=)
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights fold_mul) | ||
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights fold_mul) | ||
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights fold_mul) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused parameters..!?
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights fold_mul) | |
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights fold_mul) | |
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights fold_mul) | |
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights) | |
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights) | |
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fold_mul
is an option needed to constant fold Mul
op,
- this model has
FC(Mul(input,scale), weights, bias)
. fuse_mul_to_fullyconnected_weights
will convert toFC(input, Mul(weights, scale), bias)
- dredd test cannot detect the difference as there exist same number of FC and Mul
fold_mul
will convert toFC(input, weights', bias)
and we can detect absence ofMul
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand.
Thank you for the description =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
=)
This will add circle2circle dredd test for fuse Add/Mul to FC and fold Mul.